package cn.bone.ou.data.mapper;

import cn.bone.ou.data.bean.CommunityArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommunityArticleMapper extends BaseMapper<CommunityArticle> {

    /**分页获取列表数据*/
    List<CommunityArticle> list(@Param("communityId")Integer communityId,
                                @Param("start")Integer start,
                                @Param("num")Integer num,
                                @Param("title")String title);

    /**列表总数*/
    int countList(@Param("communityId")Integer communityId,
                  @Param("title")String title);

    /**获取文章总数*/
    int countAll(@Param("communityId")Integer communityId);
}
